package com.litxuf.logic.equipment.dao;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.litxuf.logic.equipment.dao.model.Equipment;

public class EquipmentDAO extends HibernateDaoSupport {
	/**
	 * 查询社保类型 made in 2011-3-26下午10:33:19
	 * 
	 * @param equipmentType
	 * @param jiguan
	 * @param buqing
	 * @return
	 * 
	 */
	public Equipment findEquipment(String equipmentType, String jiguan, String buqing) {

		String sql = "from Equipment   where   equipmentType='"	+ equipmentType + "' and   jieguanType='" + jiguan	+ "' AND  buqiangType='" + buqing + "' ";

		List ls=this.getHibernateTemplate().find(sql);
		if(ls!=null&&ls.size()==1){
			return (Equipment)ls.get(0);
		}
		return null;
	}
}
